home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
Projects
/
Contributed Scores
/
Piano Inventions
/
Invention 6b
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-26
|
2KB
|
73 lines
; Invention VIb - solo keyboard (24/11/93)
(create-tonality I '(d& 4 b& 4 c 5 e& 5 a& 5))
(create-tonality II '(f 4 d 5 e 5 a 5 b 5))
(create-tonality III '(b 3 g# 4 a# 4 c# 5 f# 5))
(create-tonality IV '(c 4 g 4 a 4 d 5 f 5))
(setq ntimes 20)
(setq ntimes1 4)
(setq seed 0.34)
(setq mat '(a b c d e))
(setq chd '(abcde bcd eca de bcde))
(setq matx (gen-random seed (* ntimes (length mat)) mat))
(setq chdx (gen-random seed (length chd) chd))
(setq len '(1/16))
(setq lenx (symbol-repeat (length matx) len))
(setq zon '(5/16 7/16 11/16 13/16 17/16))
(setq zonr (symbol-repeat ntimes '(5/16)))
(setq zonx (gen-random seed (length zon) zon))
(setq tons (gen-random seed ntimes '(a b c d)))
;-> (b a a a b b c c c c a b b c b d b d d b)
(setq tonal (pick-tonality ("piano-studies" seed
I II III IV I
b a a a b b c c c c a b b c b d b d d b
II III IV III II
b a a a b b c c c c a b b c b d b d d b
III IV III II I
b a a a b b c c c c a b b c b d b d d b
II IV III I IV)))
(def-tonality
instr tonal
)
(def-symbol
instr (append chd
matx
chdx
(symbol-mix (filter-delete 'c matx)
(fill-rest (filter-delete 'c matx)
(symbol-transpose -7 matx)))
chdx
(symbol-chordize seed (length matx) 5 nil
(filter-midpass 'b 'd matx))
chd)
)
(def-length
instr (append zon lenx zonx lenx zonx lenx zon)
)
(def-zone
instr (append zon zonr zonx zonr zonx zonr zon)
)
(def-velocity
instr (vector-round 45 96
(gen-noise-white (length (get-symbols-of 'instr)) 0.3))
)
(compile-instrument "ccl;output:" separate
instr
)